<div id="popup-goods-stock">
	<div id="stock-content">
		<?php if('DONE'==$request): ?>
		<div class="list-top">
			<div class="attribute">属性</div>
			<div class="stock">主仓</div>
			<div class="stock_unkown">副仓</div>
			<div class="total">总数</div>
		</div>
		<div class="list-content">
			<?php foreach($data as $sub_goods): ?>
			<div class="each">
				<div class="attribute"><?php echo $sub_goods['attribute'] ?></div>
				<div class="stock"><?php echo $sub_goods['stock'] ?></div>
				<div class="stock_unkown"><?php echo $sub_goods['stock_unkown'] ?></div>
				<div class="total"><?php echo $sub_goods['stock']+$sub_goods['stock_unkown'] ?></div>
			</div>
			<?php endforeach ?>
		</div>
		<?php else: ?>
		<p>不存在对应的子货物</p>
		<?php endif ?>
	</div>
	<div class="clear"></div>
</div>